<?php
    session_start();
    //define('ROOT_PATH',dirname(__FILE__));
    include('tool/pdo.php');
    include('/tool/submitValidate.php');
    include('/class/admin-role.class.php');
    include('/class/apartment.class.php');
    include('/class/dorm-center.class.php');
    
    include('/class/dormitory-allocating.class.php');
    include('/class/dormitory-management.class.php');
    include('/bll/DormCenterBLL.php');
    include('/bll/AdminRoleBLL.php');
    include('/bll/ApartmentBLL.php');
    include('/class/login.class.php');
    include('/bll/LoginBLL.php');
    include('/bll/DormitoryManagementBLL.php');
    include('/bll/DormitoryAllocatingBLL.php');
    include('/class/class-dormitory-management.class.php');
    include('/bll/ClassDormitoryManagementBLL.php');
    include('/class/student-dormitory-allocating.class.php');
    include('/bll/StudentDormitoryAllocatingBLL.php');
    include('/class/public-data.class.php');
    include('/bll/PublicDataBLL.php');
    include('/class/student-dormitory-exchange.class.php');
    include('/bll/StudentDormitoryExchangeBLL.php');
    include('/class/student-dormitory-list.class.php');
	include('/bll/StudentDormitoryListBLL.php');
    include('/tool/PHPExcelOperation.php');
    include('/class/student-dormitory-exchanging.class.php');
    include('/bll/StudentDormitoryExchangingBLL.php');
    include('/class/student-dormitory-change.class.php');
    include('/bll/StudentDormitoryChangeBLL.php');
    include("/bll/StudentInformationRegisterBLL.php");
    include("/class/student-information-register.class.php");
    include('/class/token.class.php');
    include('/bll/TokenBLL.php');

    /*
    $phpExcelOperation=new PHPExcelOperation();
    $data=$phpExcelOperation->getExcelData("R:/PHP-Project/DormitoryManagementSystem/upload/student.xlsx","xlsx");
    $StudentInformationRegisterBLL=new StudentInformationRegisterBLL();
    $result=$StudentInformationRegisterBLL->importExcelForStudent("1234561",$data);

    echo json_encode($result,JSON_UNESCAPED_UNICODE);*/
    $v=new Validate();
    if($v->regular('rooms','1111')){
        echo 'yes';
    }else{
        echo 'no';
    }

?>
